package com.hanthink.system.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.hanthink.common.annotation.Excel;
import com.hanthink.common.core.domain.BaseEntity;

import java.util.Date;

/**
 * 质量称重对象 EM_QUALITY_WEIGHING
 * 
 * @author tzy
 * @date 2023-09-04
 */
public class EmQualityWeighing extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键id */
    private Long id;

    /** 设备码 */
    @Excel(name = "设备码")
    private String equipKey;

    /** 单重数据 */
    @Excel(name = "单重(g)数据")
    private String weighingData;

    @Excel(name = "创建人")
    private String createdBy;

    /** 产品名称 */
    @Excel(name = "产品名称")
    private String productName;

    /** 标准单重 */
    @Excel(name = "标准单重(g)")
    private String standardSingleweight;
    @Excel(name = "创建时间",dateFormat="yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    public String getCreatedBy() {
        return createdBy;
    }

    public void setCreatedBy(String createdBy) {
        this.createdBy = createdBy;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setEquipKey(String equipKey) 
    {
        this.equipKey = equipKey;
    }

    public String getEquipKey() 
    {
        return equipKey;
    }
    public void setWeighingData(String weighingData) 
    {
        this.weighingData = weighingData;
    }

    public String getWeighingData() 
    {
        return weighingData;
    }
    public void setProductName(String productName) 
    {
        this.productName = productName;
    }

    public String getProductName() 
    {
        return productName;
    }
    public void setStandardSingleweight(String standardSingleweight) 
    {
        this.standardSingleweight = standardSingleweight;
    }

    @Override
    public Date getCreateTime() {
        return createTime;
    }

    @Override
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getStandardSingleweight()
    {
        return standardSingleweight;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("equipKey", getEquipKey())
            .append("createTime", getCreateTime())
            .append("weighingData", getWeighingData())
            .append("productName", getProductName())
            .append("standardSingleweight", getStandardSingleweight())
            .toString();
    }
}
